package com.ovopark.organize.server.common.support;


import com.ovopark.organize.server.util.NationalizationUtils;
import lombok.Data;

import java.util.Locale;
import java.util.TimeZone;

/**
 * request 中解析出来的数据 目前是通过token获取的后期会变成 request透传
 */
@Data
public class StorageInfo {

    public static final String CLIENT_WEB = "web";
    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 语言
     */
    private String lang = NationalizationUtils.DEFAULT_LANG;

    /**
     * 地区
     */
    private Locale locale = Locale.SIMPLIFIED_CHINESE;

    /**
     * 时区
     */
    private TimeZone timeZone = NationalizationUtils.DEFAULT_TIME_ZONE;

    private String client;

    private String token;

    /**
     * 版本
     */
    private String version;

    private Integer groupId;

    /**
     * ip
     */
    private String remoteIp;

    private String userName;
    
    /**
     * web  Android  ios
     */
    private String userPlatform;

    private Integer isAgency;

    private Integer isAccountUser = 0;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 设备序列号
     */
    private String deviceSerialNo;

    public Integer getIsAgency() {
        return isAgency;
    }

    public void setIsAgency(Integer isAgency) {
        this.isAgency = isAgency;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public Locale getLocale() {
        return locale;
    }

    public void setLocale(Locale locale) {
        this.locale = locale;
    }

    public TimeZone getTimeZone() {
        return timeZone;
    }

    public void setTimeZone(TimeZone timeZone) {
        this.timeZone = timeZone;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPlatform() {
        return userPlatform;
    }

    public void setUserPlatform(String userPlatform) {
        this.userPlatform = userPlatform;
    }

    public Integer getIsAccountUser() {
        return isAccountUser;
    }

    public void setIsAccountUser(Integer isAccountUser) {
        this.isAccountUser = isAccountUser;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceSerialNo() {
        return deviceSerialNo;
    }

    public void setDeviceSerialNo(String deviceSerialNo) {
        this.deviceSerialNo = deviceSerialNo;
    }
}
